package ckf.man.practice.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName data_status
 */
@TableName(value ="data_status")
@Data
public class DataStatus implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer dataStatusId;

    /**
     * 
     */
    private Integer baseDataId;

    /**
     * 
     */
    private Integer status;

    /**
     * 
     */
    private Date auditDate;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DataStatus other = (DataStatus) that;
        return (this.getDataStatusId() == null ? other.getDataStatusId() == null : this.getDataStatusId().equals(other.getDataStatusId()))
            && (this.getBaseDataId() == null ? other.getBaseDataId() == null : this.getBaseDataId().equals(other.getBaseDataId()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getAuditDate() == null ? other.getAuditDate() == null : this.getAuditDate().equals(other.getAuditDate()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getDataStatusId() == null) ? 0 : getDataStatusId().hashCode());
        result = prime * result + ((getBaseDataId() == null) ? 0 : getBaseDataId().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getAuditDate() == null) ? 0 : getAuditDate().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", dataStatusId=").append(dataStatusId);
        sb.append(", baseDataId=").append(baseDataId);
        sb.append(", status=").append(status);
        sb.append(", auditDate=").append(auditDate);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}